package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.IdentityAuthApiIndividualAccountIdTelecom3FactorsParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.IdentityAuthApiIndividualAccountIdTelecom3FactorsParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthApiIndividualAccountIdTelecom3FactorsResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/08 10:57
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthApiIndividualAccountIdTelecom3FactorsRequest extends
    AbstractESignRequest implements
    ESignRequest<IdentityAuthApiIndividualAccountIdTelecom3FactorsResponse> {

  private IdentityAuthApiIndividualAccountIdTelecom3FactorsParamPath identityAuthApiIndividualAccountIdTelecom3FactorsParamPath;
  private IdentityAuthApiIndividualAccountIdTelecom3FactorsParamBody identityAuthApiIndividualAccountIdTelecom3FactorsParamBody;

  public IdentityAuthApiIndividualAccountIdTelecom3FactorsRequest(
      IdentityAuthApiIndividualAccountIdTelecom3FactorsParamPath identityAuthApiIndividualAccountIdTelecom3FactorsParamPath,
      IdentityAuthApiIndividualAccountIdTelecom3FactorsParamBody identityAuthApiIndividualAccountIdTelecom3FactorsParamBody) {
    this.identityAuthApiIndividualAccountIdTelecom3FactorsParamPath = identityAuthApiIndividualAccountIdTelecom3FactorsParamPath;
    this.identityAuthApiIndividualAccountIdTelecom3FactorsParamBody = identityAuthApiIndividualAccountIdTelecom3FactorsParamBody;
    this.setParamPath(identityAuthApiIndividualAccountIdTelecom3FactorsParamPath);
    this.setParamBody(identityAuthApiIndividualAccountIdTelecom3FactorsParamBody);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/api/individual/{accountId}/telecom3Factors";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }

  @Override
  public Class<IdentityAuthApiIndividualAccountIdTelecom3FactorsResponse> getResponseClass() {
    return IdentityAuthApiIndividualAccountIdTelecom3FactorsResponse.class;
  }

}
